@extends('main')

@section('tip', '联系我')

@section('stylesheet')
{!! Html::style('/custom/css/parsley.css') !!}
@endsection

@section('content')
<div class="row">
    <div class="col-md-8 col-md-offset-2">
        <h1>Contact Me</h1>
        <hr>
    <form class="" action="/contact" method="post" data-parsley-validate="" id="form">
        {{ csrf_field() }}
        <div class="form-group">
            <label name="email">邮箱:</label>
            <input type="text" name="email" value="" class="form-control" required="" data-parsley-type="email">
        </div>
        <div class="form-group">
            <label name="subject">主题:</label>
            <input type="text" name="subject" value="" class="form-control" required="">
        </div>
        <div class="form-group">
            <label name="message">消息:</label>
            <textarea name="message"  class="form-control" required="">请填写你的消息</textarea>
        </div>
        <input type="submit" name="name" value="提交" class="btn btn-success">
    </form>
    </div>
</div>
@endsection

@section('javascript')
{!! Html::script('/custom/js/parsley.min.js') !!}
{!! Html::script('/custom/js/i18n/zh-cn.js') !!}
<script type="text/javascript">
  $('#form').parsley();
</script>
@endsection
